package com.sc.auction.pay.Service;


import com.sc.auction.common.exception.AuctionException;
import com.sc.auction.common.util.R;

import java.math.BigDecimal;

public interface AlipayService {

    /**
     * web端订单支付
     * @param outTradeNo 订单编号（唯一）
     * @param totalAmount 订单价格
     * @param subject 商品名称
     */
    String webPagePay(String outTradeNo,Integer totalAmount,String subject,String returnUrl) throws Exception;

    R balancePay(Integer userId,BigDecimal totalAmount,Integer orderId) throws AuctionException;

}
